package com.anolesoft.yr.mbus.cont.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 配件/备件清单
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "cont_list")
public class ContList implements Serializable {
    public static final String COL_OBJUID = "objuid";
    public static final String COL_PROD_PRODUCT_UID = "prod_product_uid";
    public static final String COL_CONT_MAIN_UID = "cont_main_uid";
    public static final String COL_ORDER_CODE = "order_code";
    public static final String COL_BOM_UID = "bom_uid";
    public static final String COL_SN_CODE = "sn_code";
    public static final String COL_PRICE = "price";
    public static final String COL_START_DATE = "start_date";
    public static final String COL_END_DATE = "end_date";
    public static final String COL_REMARK = "remark";
    public static final String COL_STK_MAIN_UID = "stk_main_uid";
    /**
     * 主键
     */
    @TableId(value = "objuid", type = IdType.AUTO)
    private String objuid;

    /**
     * 产品表主键
     */
    @TableField(value = "prod_product_uid")
    private String prodProductUid;

    /**
     * 合同表主键
     */
    @TableField(value = "cont_main_uid")
    private String contMainUid;

    /**
     * 数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 顺序号
     */
    @TableField(value = "order_code")
    private Integer orderCode;

    /**
     * 配件表主键
     */
    @TableField(value = "bom_uid")
    private String bomUid;

    /**
     * S/N
     */
    @TableField(value = "sn_code")
    private String snCode;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Long price;

    /**
     * 服务起始日期
     */
    @TableField(value = "start_date")
    private Date startDate;

    /**
     * 服务到期日期
     */
    @TableField(value = "end_date")
    private Date endDate;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 配件所在库房表主键
     */
    @TableField(value = "stk_main_uid")
    private String stkMainUid;

    private static final long serialVersionUID = 1L;
}